gtk+3.0.git
10 years agopopover: Avoid hiding modal popovers if another popover is taking focus
Carlos Garnacho [Fri, 12 Jun 2015 13:05:33 +0000 (15:05 +0200)]
popover: Avoid hiding modal popovers if another popover is taking focus

Due to popover modality itself, there's quite high chances the popover
stealing focus has been triggered from within, so stay friendly to it.
Hiding the popover here will only hide the grabbing popover too if this
happens.

https://bugzilla.gnome.org/show_bug.cgi?id=750741

10 years agowindow: Avoid rising the window of already shown popovers
Carlos Garnacho [Fri, 12 Jun 2015 13:03:41 +0000 (15:03 +0200)]
window: Avoid rising the window of already shown popovers

This breaks stacking, as popovers are repositioned sort of frequently
(even more after show/hide animations).

https://bugzilla.gnome.org/show_bug.cgi?id=750741

10 years agoreftests: fix style class syntax in CSS file
Cosimo Cecchi [Thu, 11 Jun 2015 03:21:57 +0000 (20:21 -0700)]
reftests: fix style class syntax in CSS file

Fixes reftests.

https://bugzilla.gnome.org/show_bug.cgi?id=750605

10 years agotestsuite: add a test for non-square symbolic icons
Cosimo Cecchi [Thu, 11 Jun 2015 03:52:14 +0000 (20:52 -0700)]
testsuite: add a test for non-square symbolic icons

To verify the previous fix.

https://bugzilla.gnome.org/show_bug.cgi?id=750605

10 years agoicontheme: don't modify symbolic SVG dimensions when recoloring
Cosimo Cecchi [Mon, 8 Jun 2015 23:35:31 +0000 (16:35 -0700)]
icontheme: don't modify symbolic SVG dimensions when recoloring

When recoloring symbolic SVG, do not modify the original width and
height of the passed-in file; the function later will scale the image
through gdk_pixbuf_new_from_stream_at_scale(), but we should still
use the original size to create the proxy SVG, or the image will
possibly be doubly-resized or blurry.

https://bugzilla.gnome.org/show_bug.cgi?id=750605

10 years agorecent chooser: Make it expand
Matthias Clasen [Fri, 12 Jun 2015 12:26:18 +0000 (08:26 -0400)]
recent chooser: Make it expand

It is expected that the list fills the available space.

https://bugzilla.gnome.org/show_bug.cgi?id=750690

10 years agoentry: Ensure we unset the magnifier widget on ::destroy
Carlos Garnacho [Fri, 12 Jun 2015 11:30:34 +0000 (13:30 +0200)]
entry: Ensure we unset the magnifier widget on ::destroy

Otherwise there's dangling signal handlers which cause warnings
at the time we attempt to disconnect these.

10 years agotextview: Set handles' mode to "none" if showing the bubble
Carlos Garnacho [Fri, 12 Jun 2015 11:04:45 +0000 (13:04 +0200)]
textview: Set handles' mode to "none" if showing the bubble

show_or_hide_handles() tries to disable visibility when the popover is
shown, although it triggers a bit late, and lets the handles flash briefly
if both popover and handles try to show at the same time (eg. when
pressing on the selection of a previously unfocused textview, the handles
were previously hidden, so they try to show again on focus in).

10 years agotextview: Perform tougher handle visibility checks after hiding the popover
Carlos Garnacho [Fri, 12 Jun 2015 10:45:03 +0000 (12:45 +0200)]
textview: Perform tougher handle visibility checks after hiding the popover

The handles might fall outside the visible area, and shouldn't be shown
then. Just call gtk_text_view_update_handles() which will perform these
checks, and keep the handle conveniently hidden.

This was leading to unexpectedly visible handles (and in the
wrong/previous position, the handle code doesn't relocate the widget
it's about to hide) when "select all" was selected in the popover on
a textview needing scrollbars.
and extending the selection beyond the view above and/or below.

10 years agopopover: Be lenient wrt visibility of popovers too close to widget borders
Carlos Garnacho [Fri, 12 Jun 2015 09:59:47 +0000 (11:59 +0200)]
popover: Be lenient wrt visibility of popovers too close to widget borders

The check used to hide the popover if the pointed area fell partly out of
the widget allocation, textviews now can trigger that with text selections
too close to the visible edge, as a small extra area around is now reserved.

The check has been changed to only hide the popover if the pointed area
falls completely outside the widget allocation.

10 years agotexthandle: Remove knowledge about window borders
Carlos Garnacho [Thu, 11 Jun 2015 15:10:54 +0000 (17:10 +0200)]
texthandle: Remove knowledge about window borders

We need to expand beyond these if necessary, so don't artificially
limit things here.

10 years agowindow: Allow more space at edges for popovers
Carlos Garnacho [Wed, 10 Jun 2015 19:02:34 +0000 (21:02 +0200)]
window: Allow more space at edges for popovers

We're clamping to the visible window edge, which misplaces text handles.

10 years agoentry: Set text direction information on text handles
Carlos Garnacho [Thu, 11 Jun 2015 14:18:02 +0000 (16:18 +0200)]
entry: Set text direction information on text handles

This way the handles point to the right side on the presence of rtl/ltr
text.

10 years agotextview: set text direction information on text handles
Carlos Garnacho [Wed, 10 Jun 2015 18:53:12 +0000 (20:53 +0200)]
textview: set text direction information on text handles

This makes them point to the correct place, given the theme supports
this.

10 years agotexthandle: Handle ltr/rtl positioning
Carlos Garnacho [Wed, 10 Jun 2015 18:52:02 +0000 (20:52 +0200)]
texthandle: Handle ltr/rtl positioning

This setting is per handle, as is dependent on the selected text, rather
than the locale.

10 years agoAdwaita: support rtl on text handles
Carlos Garnacho [Wed, 10 Jun 2015 18:54:09 +0000 (20:54 +0200)]
Adwaita: support rtl on text handles

Just use the opposite variant for the opposite LTR side.

10 years agotexthandles: Move start handle to bottom
Carlos Garnacho [Wed, 10 Jun 2015 17:54:34 +0000 (19:54 +0200)]
texthandles: Move start handle to bottom

The asset is going to change to point upwards, so physically place
the handle below the text position.

https://bugzilla.gnome.org/show_bug.cgi?id=750692

10 years agoAdwaita: update text selection handles
Jakub Steiner [Wed, 10 Jun 2015 17:36:48 +0000 (19:36 +0200)]
Adwaita: update text selection handles

- we'll put both handles to teh bottom
- renamed top, bottom to start and end. will be easier
  for rtl too.

https://bugzilla.gnome.org/show_bug.cgi?id=750692

10 years agodocs: Fix some minor typos in comments in GtkWidget
Piotr Drąg [Thu, 11 Jun 2015 13:50:15 +0000 (15:50 +0200)]
docs: Fix some minor typos in comments in GtkWidget

10 years agosettings: Fix the type annotation for color-hash
Emmanuele Bassi [Thu, 11 Jun 2015 10:43:35 +0000 (11:43 +0100)]
settings: Fix the type annotation for color-hash

The (element-type) annotation cannot be used with properties that return
container types like GHashTable; we need to use the (type) annotation.

https://bugzilla.gnome.org/show_bug.cgi?id=750489

10 years agobuilder: Skip introspecting lookup_callback_symbol()
Emmanuele Bassi [Thu, 11 Jun 2015 10:40:37 +0000 (11:40 +0100)]
builder: Skip introspecting lookup_callback_symbol()

Opaque function pointers as return values are not really usable in high
level languages, even via introspection.

10 years agodocs: Fix annotation for GtkGLArea::resize signal
Emmanuele Bassi [Thu, 11 Jun 2015 10:39:38 +0000 (11:39 +0100)]
docs: Fix annotation for GtkGLArea::resize signal

We need to document all arguments for the signal, for both gtk-doc and
introspection.

10 years agodocs: Improve deprecation notices for GtkSettings
Emmanuele Bassi [Wed, 10 Jun 2015 16:16:41 +0000 (17:16 +0100)]
docs: Improve deprecation notices for GtkSettings

The button and menu item icons settings are deprecated; application
developers should control whether or not a widget should show an icon,
using the existing API.

https://bugzilla.gnome.org/show_bug.cgi?id=750718

10 years agodocs: Improve deprecation notices for GtkMisc
Emmanuele Bassi [Wed, 10 Jun 2015 16:12:02 +0000 (17:12 +0100)]
docs: Improve deprecation notices for GtkMisc

Point to the replacement properties and functions.

https://bugzilla.gnome.org/show_bug.cgi?id=750718

10 years agodocs: Improve deprecation notice for rules-hint property
Emmanuele Bassi [Wed, 10 Jun 2015 16:07:41 +0000 (17:07 +0100)]
docs: Improve deprecation notice for rules-hint property

Specify that the theme is wholly in control.

https://bugzilla.gnome.org/show_bug.cgi?id=750718

10 years agodocs: Improve deprecation notices for GtkImageMenuItem properties
Emmanuele Bassi [Wed, 10 Jun 2015 16:06:46 +0000 (17:06 +0100)]
docs: Improve deprecation notices for GtkImageMenuItem properties

Should help porting code away from the deprecated GtkImageMenuItem
class.

https://bugzilla.gnome.org/show_bug.cgi?id=750718

10 years agodocs: Add deprecation notices for GtkAlignment properties
Emmanuele Bassi [Wed, 10 Jun 2015 16:00:56 +0000 (17:00 +0100)]
docs: Add deprecation notices for GtkAlignment properties

We want people to port their code away from deprecated classes, and this
helps finding a replacement.

https://bugzilla.gnome.org/show_bug.cgi?id=750718

10 years agogtklistboxrow: propagate in the draw vfunc
Carlos Soriano [Wed, 10 Jun 2015 15:42:10 +0000 (17:42 +0200)]
gtklistboxrow: propagate in the draw vfunc

So objects connected by g_signal_connect_after actually get
the signal.
This was causing an issue in the dnd highlight, since there
a cairo rectangle is draw using g_signal_connect_after on the draw
signal.

10 years agoentry: Select word on double tap
Matthias Clasen [Wed, 10 Jun 2015 10:20:18 +0000 (06:20 -0400)]
entry: Select word on double tap

The same approach as taken for GtkTextView in the previous commit.

10 years agotext view: Select word on double tap
Matthias Clasen [Wed, 10 Jun 2015 03:29:47 +0000 (23:29 -0400)]
text view: Select word on double tap

This is an initial attempt at implementing double-tap selection.

10 years agogtk-demo: Make hypertext demo work with touch
Matthias Clasen [Wed, 10 Jun 2015 02:29:26 +0000 (22:29 -0400)]
gtk-demo: Make hypertext demo work with touch

Make tapping on the links work.

10 years agowayland: Improve guessing of popup placement for detached popup menus
Jonas Ådahl [Fri, 5 Jun 2015 05:29:22 +0000 (13:29 +0800)]
wayland: Improve guessing of popup placement for detached popup menus

If a menu was not attached to any widget, we try to calculate its
position given where the grabbed pointer is and what window has its
focus. Previously we failed to do so if a "transfer window" was used
for the grab, and this patch adds a code path that, if the menu window
itself didn't have the grab, look for the transfer window and get the
grab device from there.

https://bugzilla.gnome.org/show_bug.cgi?id=748951

10 years agowayland: Don't try to guess the popup menu placement when it was set
Jonas Ådahl [Fri, 5 Jun 2015 05:35:21 +0000 (13:35 +0800)]
wayland: Don't try to guess the popup menu placement when it was set

If a position was already explicitly set, don't try to guess the
position of popup menus by looking at the pointer position, just use
the set coordinates.

https://bugzilla.gnome.org/show_bug.cgi?id=748951

10 years agowayland: Position popups relative to the parent surface
Jonas Ådahl [Fri, 22 May 2015 08:39:31 +0000 (16:39 +0800)]
wayland: Position popups relative to the parent surface

According to the xdg-shell protocol specification the (x, y) coordinates
passed when creating a popup surface is relative to top left corner of
the parent surface, but prior to this patch, if the parent surface
was an xdg_surface, we'd position it relative to top left corner of the
window geometry of that xdg_surface.

https://bugzilla.gnome.org/show_bug.cgi?id=749717

10 years agoGtkTextHandle: Improve handle positioning
Matthias Clasen [Wed, 10 Jun 2015 01:19:17 +0000 (21:19 -0400)]
GtkTextHandle: Improve handle positioning

When we are close the window edge, we need to shrink the 'invisible
border' around the handle to avoid mispositioning it. A fiddly
calculation, but it works.

10 years agoGtkTextHandle: drop non-implemented functions
Matthias Clasen [Tue, 9 Jun 2015 23:07:34 +0000 (19:07 -0400)]
GtkTextHandle: drop non-implemented functions

10 years agoGtkTextHandle: position handles properly
Matthias Clasen [Tue, 9 Jun 2015 21:06:27 +0000 (17:06 -0400)]
GtkTextHandle: position handles properly

Move the handles so that the asymmetric assets align with the
start/end of the selection.

10 years agowidget-factory: Improve touch selection example
Matthias Clasen [Tue, 9 Jun 2015 19:50:50 +0000 (15:50 -0400)]
widget-factory: Improve touch selection example

Make the check buttons not take focus on click, so the popover
stays open.

10 years agoentry: Make touch selection work with mouse
Matthias Clasen [Tue, 9 Jun 2015 19:50:30 +0000 (15:50 -0400)]
entry: Make touch selection work with mouse

The buttons on the popover where stealing the focus from the text
view on click, causing the popover to be dismissed before the action
was taken. Fix this by making the buttons not take focus on click.

10 years agotext view: Make touch selection work with mouse
Matthias Clasen [Tue, 9 Jun 2015 19:49:10 +0000 (15:49 -0400)]
text view: Make touch selection work with mouse

The buttons on the popover where stealing the focus from the text
view on click, causing the popover to be dismissed before the action
was taken. Fix this by making the buttons not take focus on click.

10 years agoadwaita: style tweaks to touch selections
Jakub Steiner [Tue, 9 Jun 2015 13:02:39 +0000 (15:02 +0200)]
adwaita: style tweaks to touch selections

- use dark theme assets for the checkboxes and radios
- darken the popover for legibility (white bg/black text is
  really the most problematic background to have).

unfortunatley in terms of SCSS structure this is further digging us into the
hole of specificity. It would be much nicer to set the .osd class on the popover
and have everything just work. I'm sure we'll end up using OSD styled popovers
outside the touch context.

https://bugzilla.gnome.org/show_bug.cgi?id=750396

10 years agoUpdate Catalan translation
Jordi Mas [Tue, 9 Jun 2015 06:07:05 +0000 (08:07 +0200)]
Update Catalan translation

10 years agoentry: Avoid criticals
Matthias Clasen [Mon, 8 Jun 2015 23:04:06 +0000 (19:04 -0400)]
entry: Avoid criticals

After the recent changes, we could end up calling
gtk_entry_update_handles in cases where the text_handle
has not be created (e.g. when dragging text from an entry).
Avoid that.

10 years agowidget: Clarify docs on gtk_widget_set_double_buffered()
Benjamin Otte [Mon, 8 Jun 2015 18:28:10 +0000 (20:28 +0200)]
widget: Clarify docs on gtk_widget_set_double_buffered()

Also make them more scary so people really really don't use it as a
random knob when trying to make things go fast.

//bugzilla.gnome.org/show_bug.cgi?id=750505

10 years agomain: Push the current event on the stack before we start needing it
Rui Matos [Fri, 5 Jun 2015 17:21:40 +0000 (19:21 +0200)]
main: Push the current event on the stack before we start needing it

The changes in commit 13e22e20300b7312e52bba7d077fc7e231695fc1 made
_gtk_window_check_handle_wm_event() indirectly depend on
gtk_get_current_event_time() which relies on the current event being
available on the current_events stack.

Since the current event is only pushed on the stack afterwards we get
an invalid timestamp which breaks ewmh window moving.

This fixes the issue by pushing the current event before we start
relying on it being there in gtk_main_do_event() and, as a byproduct,
also fixes a potential memory leak when we have a rewritten event and
return early due to _gtk_window_check_handle_wm_event() being TRUE.

https://bugzilla.gnome.org/show_bug.cgi?id=750384

10 years agoentry: Always clear handles for mouse interaction
Matthias Clasen [Mon, 8 Jun 2015 01:52:35 +0000 (21:52 -0400)]
entry: Always clear handles for mouse interaction

There were some cases where we left a handle visible
during mouse interaction, which is a little weird.

10 years agoentry: Move touch selection a little further away
Matthias Clasen [Mon, 8 Jun 2015 01:13:16 +0000 (21:13 -0400)]
entry: Move touch selection a little further away

Otherwise, it looks cramped, and we end up under the finger.

10 years agoentry: Hide popover when touching elsewhere
Matthias Clasen [Mon, 8 Jun 2015 00:41:16 +0000 (20:41 -0400)]
entry: Hide popover when touching elsewhere

Otherwise, the popover becomes 'sticky' and hard-to-dismiss.

10 years agoentry: Use the drag-started signal
Matthias Clasen [Mon, 8 Jun 2015 00:14:43 +0000 (20:14 -0400)]
entry: Use the drag-started signal

Use the drag-started signal to differentiate between drags that
move a handle and taps on a handle. Show the touch selection popup
for the latter, but not the former.

10 years agoentry: Make handles come back reliably
Matthias Clasen [Sun, 7 Jun 2015 23:31:06 +0000 (19:31 -0400)]
entry: Make handles come back reliably

We were setting the text handle mode to NONE too aggressively.

10 years agoentry: Never show handles and popover at the same time
Matthias Clasen [Sun, 7 Jun 2015 18:01:39 +0000 (14:01 -0400)]
entry: Never show handles and popover at the same time

Hide the handles when the popover appears, and brind them back
when it disappears. This will need revisiting if we start using
the popover for mouse interaction as well, where we may not
want handles to show up.

10 years agoentry: Shorten touch selection timeout
Matthias Clasen [Sun, 7 Jun 2015 17:55:09 +0000 (13:55 -0400)]
entry: Shorten touch selection timeout

We don't want the popup to appear spontaneously, so eventually
the timeout may go away altogether. For now, shorten it to 50ms,
to avoid rewriting all the places where the timeout is set or
unset.

10 years agotext view: Always clear handles for mouse interaction
Matthias Clasen [Mon, 8 Jun 2015 01:48:35 +0000 (21:48 -0400)]
text view: Always clear handles for mouse interaction

There were some cases where we left a handle visible
during mouse interaction, which is a little weird.

10 years agotext view: Move touch selection a little further away
Matthias Clasen [Sun, 7 Jun 2015 16:59:21 +0000 (12:59 -0400)]
text view: Move touch selection a little further away

Otherwise, it looks cramped, and we end up under the finger.

10 years agotext view: Use the drag-started signal
Matthias Clasen [Sun, 7 Jun 2015 16:46:11 +0000 (12:46 -0400)]
text view: Use the drag-started signal

Use the drag-started signal to differentiate between drags that
move a handle and taps on a handle. Show the touch selection popup
for the latter, but not the former.

10 years agoGtkTextHandle: add a drag-started signal
Matthias Clasen [Sun, 7 Jun 2015 16:45:34 +0000 (12:45 -0400)]
GtkTextHandle: add a drag-started signal

This will be used to discriminate drags from taps.

10 years agotext view: Don't popup after drag selection
Matthias Clasen [Sun, 7 Jun 2015 16:19:16 +0000 (12:19 -0400)]
text  view: Don't popup after drag selection

Don't show the touch selection popover after a selection drag
ends. Instead, the popover will be triggered by an explicit
touch on the selection.

10 years agotext view: Never show handles and popover at the same time
Matthias Clasen [Sun, 7 Jun 2015 16:12:43 +0000 (12:12 -0400)]
text view: Never show handles and popover at the same time

Hide the handles when the popover appears, and brind them back
when it disappears. This will need revisiting if we start using
the popover for mouse interaction as well, where we may not
want handles to show up.

10 years agotext view: Shorten touch selection timeout
Matthias Clasen [Sun, 7 Jun 2015 16:09:59 +0000 (12:09 -0400)]
text view: Shorten touch selection timeout

We don't want the popover to appear spontaneously, so eventually
the timeout may go away altogether. For now, shorten it to 50ms,
to avoid rewriting all the places where the timeout is set or
unset.

10 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 8 Jun 2015 07:56:59 +0000 (07:56 +0000)]
Updated Spanish translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 8 Jun 2015 07:56:26 +0000 (07:56 +0000)]
Updated Spanish translation

10 years agowidget-factory: Improve context menu example
Matthias Clasen [Sun, 7 Jun 2015 05:24:13 +0000 (01:24 -0400)]
widget-factory: Improve context menu example

Show the text formatting in the menu / popover.

10 years agowidget-factory: Demonstrate custom context menu items
Matthias Clasen [Sun, 7 Jun 2015 05:12:18 +0000 (01:12 -0400)]
widget-factory: Demonstrate custom context menu items

Add bold/italics/underline styling to the context menu of
the 'Lorem ipsum...' text view in page 1. The point is not
to show good UI for this kind of styling, but to demonstrate
custom actions in the context menu / touch selection.

10 years agoAdwaita: Some touch selection updates
Matthias Clasen [Sun, 7 Jun 2015 05:11:32 +0000 (01:11 -0400)]
Adwaita: Some touch selection updates

Make touch selection popovers use osd style.

10 years agoUpdate touch selection style
Matthias Clasen [Sun, 7 Jun 2015 05:08:33 +0000 (01:08 -0400)]
Update touch selection style

Update style for touch selection in GtkEntry and GtkTextView
according to https://wiki.gnome.org/Design/OS/Selections

Add 'Select All' to the default actions, change actions
to use icons and move the popover to the bottom. If there is
no selection, just offer to paste.

10 years agogtkfilechooserbutton: Align the label to the left
Timm Bäder [Sat, 6 Jun 2015 09:45:11 +0000 (11:45 +0200)]
gtkfilechooserbutton: Align the label to the left

Using GtkLabel's xalign property so the label doesn't jump around when
the button gets resized.

https://bugzilla.gnome.org/show_bug.cgi?id=750477

10 years agoplaces sidebar: Make 'recent' work on other platforms
Matthias Clasen [Sat, 6 Jun 2015 21:13:22 +0000 (17:13 -0400)]
places sidebar: Make 'recent' work on other platforms

Since nautilus merge, we were not showing 'Recent' in the sidebar
if GIO did not support the recent: scheme. But the file chooser
can show recent files independent of gvfs - it loads the recent
files manually. This is relevant on Windows and OS X, where gvfs
is typically not used.

This commit adds a show-recent property which can be used to override
the recent: scheme check. We use it in the file chooser.

https://bugzilla.gnome.org/show_bug.cgi?id=750068

10 years agotexthandle: Set prelight state on the pointer-interacted handle
Carlos Garnacho [Thu, 4 Jun 2015 17:49:33 +0000 (19:49 +0200)]
texthandle: Set prelight state on the pointer-interacted handle

This will be useful with the theming changes to come.

https://bugzilla.gnome.org/show_bug.cgi?id=750396

10 years agotexthandle: Allow setting individual states, and separately to handles
Carlos Garnacho [Thu, 4 Jun 2015 17:46:20 +0000 (19:46 +0200)]
texthandle: Allow setting individual states, and separately to handles

Now each handle gets its individual current state, and we can accumulate
more than one state on these.

https://bugzilla.gnome.org/show_bug.cgi?id=750396

10 years agoAdwaita: updates style for text selection
Jakub Steiner [Thu, 4 Jun 2015 17:36:25 +0000 (19:36 +0200)]
Adwaita: updates style for text selection

- use consistent widget style. unfortunately using assets
- light/dark variant
- new assets for text selestions, using existing slider asset for
  insertion point

https://bugzilla.gnome.org/show_bug.cgi?id=750396

10 years agoAdd a tree dnd testcase
Matthias Clasen [Fri, 5 Jun 2015 12:33:59 +0000 (08:33 -0400)]
Add a tree dnd testcase

This shows a minimal setup for enabling non-row DND from a treeview.

10 years agogtkplug: set decorated to FALSE by default
Alberts Muktupāvels [Thu, 4 Jun 2015 20:40:38 +0000 (23:40 +0300)]
gtkplug: set decorated to FALSE by default

The change in c5e5ee67490e7e7af56052d8f8beb75db002c2f1 introduced
a regression - all GtkPlug windows has unexpected extra space. Fix
this by setting decorated to FALSE for GtkPlug window.

https://bugzilla.gnome.org/show_bug.cgi?id=750424

10 years agogtkrevealer: add css padding support
Carlos Soriano [Wed, 3 Jun 2015 12:58:04 +0000 (14:58 +0200)]
gtkrevealer: add css padding support

Add css padding support to GtkRevealer.

As a future work, GtkRevealer still needs to support the border
property.

https://bugzilla.gnome.org/show_bug.cgi?id=750338

10 years agoGtkScale: Move marks inward
Matthias Clasen [Thu, 4 Jun 2015 23:58:40 +0000 (19:58 -0400)]
GtkScale: Move marks inward

We don't want scale marks to affect scale sizing and positioning,
so draw them inside the range recangle. This avoids size changes
for marks that don't have labels, at least.

https://bugzilla.gnome.org/show_bug.cgi?id=749650

10 years agoUpdated Hungarian translation
Balázs Úr [Thu, 4 Jun 2015 20:54:38 +0000 (20:54 +0000)]
Updated Hungarian translation

10 years agoTrivial: remove outdated comment
Matthias Clasen [Thu, 4 Jun 2015 19:14:04 +0000 (15:14 -0400)]
Trivial: remove outdated comment

10 years agoAdwaita: entry linking logic change.
Lapo Calamandrei [Thu, 4 Jun 2015 14:19:05 +0000 (16:19 +0200)]
Adwaita: entry linking logic change.

Use the same linking logic of buttons for entries, this avoids
specialcasing rtl.

10 years agoUpdated Tajik translation
Victor Ibragimov [Thu, 4 Jun 2015 05:43:19 +0000 (05:43 +0000)]
Updated Tajik translation

10 years agowindow: Check if we can use CSD before enabling them
Emmanuele Bassi [Wed, 3 Jun 2015 13:07:29 +0000 (14:07 +0100)]
window: Check if we can use CSD before enabling them

The change in 03213b9509fc1df16c66194ea168aed6c15110e9 changed the rules
as to when CSD can be enabled, but it also unconditionally enables CSD
with the implicit assumption that client-side shadows were the real
issue, and that we could work around that by drawing our own borders.
This also means that setting a titlebar for a GtkWindow will enable CSD
unconditionally.

In reality, some window managers (like Matchbox) *only* support
server-side decorations, and will ignore all hints to the contrary, to
the point of drawing decorations at random locations on top of the
window.

Since CSD are enabled unconditionally, the GTK_CSD environment variable
is also not a suitable escape hatch.

In the grand tradition of asking ourselves if we should do something
just because we can, we should split the environment checks from the
checks on what the user requested; by doing that, we can also check
when enabling client-side decorations, and ideally bail out if needed.

https://bugzilla.gnome.org/show_bug.cgi?id=750343

10 years agomir: keep reference on queued events
William Hua [Thu, 21 May 2015 16:48:27 +0000 (11:48 -0500)]
mir: keep reference on queued events

10 years agomir: gdk_mir_window_impl_set_surface_type
William Hua [Thu, 21 May 2015 14:41:42 +0000 (09:41 -0500)]
mir: gdk_mir_window_impl_set_surface_type

10 years agomir: Create the correct surface
William Hua [Wed, 20 May 2015 22:24:20 +0000 (17:24 -0500)]
mir: Create the correct surface

10 years agomir: Remove redundant calls
William Hua [Wed, 20 May 2015 20:02:31 +0000 (15:02 -0500)]
mir: Remove redundant calls

10 years agomir: log input events properly
William Hua [Wed, 20 May 2015 18:27:36 +0000 (13:27 -0500)]
mir: log input events properly

10 years agomir: Resolve warnings
William Hua [Wed, 20 May 2015 15:38:16 +0000 (10:38 -0500)]
mir: Resolve warnings

10 years agomir: Update cursor position
William Hua [Wed, 20 May 2015 14:47:44 +0000 (09:47 -0500)]
mir: Update cursor position

10 years agomir: Remove child window rendering hack
William Hua [Tue, 19 May 2015 22:58:38 +0000 (17:58 -0500)]
mir: Remove child window rendering hack

10 years agowayland: Move DnD grab breaking function into gdkdevice-wayland.c
Carlos Garnacho [Mon, 1 Jun 2015 13:55:20 +0000 (14:55 +0100)]
wayland: Move DnD grab breaking function into gdkdevice-wayland.c

This has little to do with GdkDragContext, and a lot to do with
the GdkDevice that triggered it, seems to make more sense in
gdkdevice-wayland.c.

10 years agowayland: Split keyboard/button modifiers internally
Carlos Garnacho [Mon, 1 Jun 2015 13:53:11 +0000 (14:53 +0100)]
wayland: Split keyboard/button modifiers internally

On wl_keyboard.key/modifiers, we're just forgetting about currently
pressed mouse buttons. Fix this by storing button and key modifiers
separately, and put these together when creating the GdkEvents.

10 years agotextview: Update handles after flushing scroll changes
Carlos Garnacho [Mon, 1 Jun 2015 15:21:20 +0000 (16:21 +0100)]
textview: Update handles after flushing scroll changes

Text insertion/pasting might trigger scroll, so we'd have to wait
until the text was revalidated and the scrolling truly happened
before we can check the new handle(s) position.

10 years agodnd: Remove emission of fake button release event
Carlos Garnacho [Wed, 27 May 2015 12:22:00 +0000 (14:22 +0200)]
dnd: Remove emission of fake button release event

Nowadays (and for quite some years now) we rely on GdkEventGrabBroken
events to be received. This fake button event seems a remnant of
the early Gtk 2.x days, and is currently even inconsistent with our
event delivery model, so just remove it.

https://bugzilla.gnome.org/show_bug.cgi?id=749737

10 years agobuild: Fix make dist
Rico Tzschichholz [Tue, 2 Jun 2015 15:12:18 +0000 (17:12 +0200)]
build: Fix make dist

Revert 2 hunks introduced by 36c65c1acabfd8fb1b5b85d7b128bfd4361b6fc3

10 years agoconfigure: Require pango >= 1.37.0
Rico Tzschichholz [Tue, 2 Jun 2015 15:11:08 +0000 (17:11 +0200)]
configure: Require pango >= 1.37.0

Needed since 049cbc8b74aa7a6fff1627c8c65cbfd3c86dfde8

10 years agoupdateiconcache: Fix compiler warnings
Matthias Clasen [Sun, 31 May 2015 01:31:07 +0000 (21:31 -0400)]
updateiconcache: Fix compiler warnings

Fix warnings due to -Wdeclaration-after-statement and -Wshadow.

10 years agoqueryimmodules: Fix compiler warnings
Matthias Clasen [Sun, 31 May 2015 01:30:53 +0000 (21:30 -0400)]
queryimmodules: Fix compiler warnings

Fix warnings due to -Wdeclaration-after-statement and -Wshadow.

10 years agoxembed: Fix compiler warnings
Matthias Clasen [Sun, 31 May 2015 01:30:40 +0000 (21:30 -0400)]
xembed: Fix compiler warnings

Fix warnings due to -Wdeclaration-after-statement and -Wshadow.

10 years agowidget path: Fix compiler warnings
Matthias Clasen [Sun, 31 May 2015 01:30:26 +0000 (21:30 -0400)]
widget path: Fix compiler warnings

Fix warnings due to -Wdeclaration-after-statement and -Wshadow.

10 years agowidget: Fix compiler warnings
Matthias Clasen [Sun, 31 May 2015 01:30:11 +0000 (21:30 -0400)]
widget: Fix compiler warnings

Fix warnings due to -Wdeclaration-after-statement and -Wshadow.

10 years agotree view: Fix compiler warnings
Matthias Clasen [Sun, 31 May 2015 01:29:48 +0000 (21:29 -0400)]
tree view: Fix compiler warnings

Fix warnings due to -Wdeclaration-after-statement and -Wshadow.

10 years agotree model sort: Fix compiler warnings
Matthias Clasen [Sun, 31 May 2015 01:29:21 +0000 (21:29 -0400)]
tree model sort: Fix compiler warnings

Fix warnings due to -Wdeclaration-after-statement and -Wshadow.